package com.wcy.scl.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("compute-service")
public interface ComputeService {
	// @RequestParam("x") 这里的("x")必须有
	// @RequestHeader("x") 
	// @RequestBody
	@RequestMapping(value="/add", method=RequestMethod.GET)
	int add(@RequestParam("x") Integer x, @RequestParam("y") Integer y);
}
